package br.com.view;

import br.com.dao.ConectaBanco;
import br.com.dao.ModeloTabela;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.swing.JOptionPane;
import javax.swing.ListSelectionModel;

/**
 *
 * @author Suporte
 */
public class Frm_CadSetor extends javax.swing.JFrame {

    ConectaBanco conexao = new ConectaBanco();

    /**
     * Creates new form Frm_CadSetor
     */
    public Frm_CadSetor() {
        initComponents();
        conexao.conexao();
        geraTabela("select * from setor order by idTBSetor");
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        tableSetor = new javax.swing.JTable();
        textCodigoSetor = new javax.swing.JTextField();
        textNomeSetor = new javax.swing.JTextField();
        textDescricao = new javax.swing.JTextField();
        textResp = new javax.swing.JTextField();
        textEmail = new javax.swing.JTextField();
        lbCodigo = new javax.swing.JLabel();
        lbNome = new javax.swing.JLabel();
        lbDescricao = new javax.swing.JLabel();
        lbResp = new javax.swing.JLabel();
        lbEmail = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        textAreaR = new javax.swing.JTextArea();
        jScrollPane3 = new javax.swing.JScrollPane();
        textAreaO = new javax.swing.JTextArea();
        lbRisco = new javax.swing.JLabel();
        lbObservacoes = new javax.swing.JLabel();
        btnNovo = new javax.swing.JButton();
        btnAlterar = new javax.swing.JButton();
        btnExcluir = new javax.swing.JButton();
        btnPrimeiro = new javax.swing.JButton();
        btnAnterior = new javax.swing.JButton();
        btnProximo = new javax.swing.JButton();
        btnUltimo = new javax.swing.JButton();
        btnCancelar = new javax.swing.JButton();
        btnSalvar = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JSeparator();
        jSeparator2 = new javax.swing.JSeparator();
        jLabel8 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        tableSetor.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {},
                {},
                {},
                {}
            },
            new String [] {

            }
        ));
        jScrollPane1.setViewportView(tableSetor);

        getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 90, 420, 340));

        textCodigoSetor.setEnabled(false);
        getContentPane().add(textCodigoSetor, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 90, 60, -1));

        textNomeSetor.setEnabled(false);
        getContentPane().add(textNomeSetor, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 140, 360, -1));

        textDescricao.setEnabled(false);
        getContentPane().add(textDescricao, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 170, 340, -1));

        textResp.setEnabled(false);
        getContentPane().add(textResp, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 200, 320, -1));

        textEmail.setEnabled(false);
        getContentPane().add(textEmail, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 230, 360, -1));

        lbCodigo.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lbCodigo.setText("Código");
        getContentPane().add(lbCodigo, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 90, -1, -1));

        lbNome.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lbNome.setText("Nome");
        getContentPane().add(lbNome, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 140, -1, -1));

        lbDescricao.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lbDescricao.setText("Descrição");
        getContentPane().add(lbDescricao, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 170, -1, -1));

        lbResp.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lbResp.setText("Responsavel");
        getContentPane().add(lbResp, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 200, -1, -1));

        lbEmail.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lbEmail.setText("E-mail");
        getContentPane().add(lbEmail, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, -1, -1));

        jScrollPane2.setEnabled(false);

        textAreaR.setColumns(20);
        textAreaR.setRows(5);
        jScrollPane2.setViewportView(textAreaR);

        getContentPane().add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 280, 370, 50));

        jScrollPane3.setEnabled(false);

        textAreaO.setColumns(20);
        textAreaO.setRows(5);
        jScrollPane3.setViewportView(textAreaO);

        getContentPane().add(jScrollPane3, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 370, 370, 60));

        lbRisco.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lbRisco.setText("Riscos");
        getContentPane().add(lbRisco, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 260, -1, -1));

        lbObservacoes.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lbObservacoes.setText("Observações");
        getContentPane().add(lbObservacoes, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 350, -1, -1));

        btnNovo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones sysepi/favicon(42).png"))); // NOI18N
        btnNovo.setText("Novo");
        btnNovo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNovoActionPerformed(evt);
            }
        });
        getContentPane().add(btnNovo, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 470, -1, -1));

        btnAlterar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones sysepi/favicon (7).png"))); // NOI18N
        btnAlterar.setText("Alterar");
        btnAlterar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAlterarActionPerformed(evt);
            }
        });
        getContentPane().add(btnAlterar, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 470, -1, -1));

        btnExcluir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones sysepi/favicon (3).png"))); // NOI18N
        btnExcluir.setText("Excluir");
        btnExcluir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExcluirActionPerformed(evt);
            }
        });
        getContentPane().add(btnExcluir, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 470, -1, -1));

        btnPrimeiro.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones sysepi/favicon (43).png"))); // NOI18N
        btnPrimeiro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnPrimeiroActionPerformed(evt);
            }
        });
        getContentPane().add(btnPrimeiro, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 470, -1, -1));

        btnAnterior.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones sysepi/favicon (2).png"))); // NOI18N
        btnAnterior.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAnteriorActionPerformed(evt);
            }
        });
        getContentPane().add(btnAnterior, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 470, -1, -1));

        btnProximo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones sysepi/favicon (24).png"))); // NOI18N
        btnProximo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnProximoActionPerformed(evt);
            }
        });
        getContentPane().add(btnProximo, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 470, -1, -1));

        btnUltimo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones sysepi/favicon (16).png"))); // NOI18N
        btnUltimo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnUltimoActionPerformed(evt);
            }
        });
        getContentPane().add(btnUltimo, new org.netbeans.lib.awtextra.AbsoluteConstraints(570, 470, -1, -1));

        btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones sysepi/favicon (4).png"))); // NOI18N
        btnCancelar.setText("Cancelar");
        btnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelarActionPerformed(evt);
            }
        });
        getContentPane().add(btnCancelar, new org.netbeans.lib.awtextra.AbsoluteConstraints(650, 470, -1, -1));

        btnSalvar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icones sysepi/favicon (29).png"))); // NOI18N
        btnSalvar.setText("Salvar");
        btnSalvar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSalvarActionPerformed(evt);
            }
        });
        getContentPane().add(btnSalvar, new org.netbeans.lib.awtextra.AbsoluteConstraints(760, 470, -1, -1));

        jSeparator1.setForeground(new java.awt.Color(0, 102, 102));
        getContentPane().add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 450, 850, 10));

        jSeparator2.setForeground(new java.awt.Color(0, 102, 102));
        getContentPane().add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, 860, -1));

        jLabel8.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel8.setText("Cadastro Setor");
        getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 20, 190, 30));

        setSize(new java.awt.Dimension(905, 564));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void btnNovoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNovoActionPerformed
        NovoSetor();
    }//GEN-LAST:event_btnNovoActionPerformed

    private void btnAlterarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAlterarActionPerformed
        conexao.conexao();
        String sqlAlterar = (" update setor set nome_setor = ?, descricao_setor = ?, responsavel_setor = ?, email_setor = ?, risco_setor = ?, observacoes_setor = ?  where idTBSetor=? ");
        try {
            PreparedStatement pst = conexao.con.prepareStatement(sqlAlterar);
            pst.setString(1, textNomeSetor.getText());
            pst.setString(2, textDescricao.getText());
            pst.setString(3, textResp.getText());
            pst.setString(4, textEmail.getText());
            pst.setString(5, textAreaR.getText());
            pst.setString(6, textAreaO.getText());
            pst.setInt(7, Integer.parseInt(textCodigoSetor.getText()));
            pst.executeUpdate();
            pst.close();
            JOptionPane.showMessageDialog(null, "Alterado com Sucesso!");
            geraTabela("select * from setor order by idTBSetor");
            conexao.desconecta();
        } catch (SQLException erro) {
            JOptionPane.showMessageDialog(null, "Erro ao Alterar/n" + erro);
            conexao.desconecta();
        }
        conexao.desconecta();
    }//GEN-LAST:event_btnAlterarActionPerformed

    private void btnExcluirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExcluirActionPerformed
        conexao.conexao();
        String sqlExcluir = (" delete from setor where idTBSetor ='" + this.textCodigoSetor.getText() + "'");
        try {
            conexao.executaSQL(sqlExcluir);
            conexao.pst.close();
            JOptionPane.showMessageDialog(null, "Excluido com Sucesso!");
            geraTabela("select * from setor order by idTBSetor");
            conexao.desconecta();
        } catch (SQLException erro) {
            JOptionPane.showMessageDialog(null,"Erro ao excluir o Setor/n"+ erro);
            conexao.desconecta();
        }
        conexao.desconecta();
    }//GEN-LAST:event_btnExcluirActionPerformed

    private void btnPrimeiroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPrimeiroActionPerformed
        NovoSetor();
        conexao.conexao();
        try {
            conexao.executaSQL("select * from setor");
            conexao.rs.first();
            textCodigoSetor.setText(String.valueOf(conexao.rs.getInt("idTBSetor")));
            textNomeSetor.setText(conexao.rs.getString("nome_setor"));
            textDescricao.setText(conexao.rs.getString("descricao_setor"));
            textResp.setText(conexao.rs.getString("responsavel_setor"));
            textEmail.setText(conexao.rs.getString("email_setor"));
            textAreaR.setText(conexao.rs.getString("risco_setor"));
            textAreaO.setText(conexao.rs.getString("observacoes_setor"));
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, "Erro Primeiro Dado/n" + ex);
            conexao.desconecta();
        }
        conexao.desconecta();
    }//GEN-LAST:event_btnPrimeiroActionPerformed

    private void btnAnteriorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAnteriorActionPerformed
        conexao.conexao();
        try {
            conexao.rs.previous();
            textCodigoSetor.setText(String.valueOf(conexao.rs.getInt("idTBSetor")));
            textNomeSetor.setText(conexao.rs.getString("nome_setor"));
            textDescricao.setText(conexao.rs.getString("descricao_setor"));
            textResp.setText(conexao.rs.getString("responsavel_setor"));
            textEmail.setText(conexao.rs.getString("email_setor"));
            textAreaR.setText(conexao.rs.getString("risco_setor"));
            textAreaO.setText(conexao.rs.getString("observacoes_setor"));
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, "Erro Anterior Dado/n" + ex);
            conexao.desconecta();
        }
        conexao.desconecta();
    }//GEN-LAST:event_btnAnteriorActionPerformed

    private void btnProximoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnProximoActionPerformed
        conexao.conexao();
        try {
            conexao.rs.next();
            textCodigoSetor.setText(String.valueOf(conexao.rs.getInt("idTBSetor")));
            textNomeSetor.setText(conexao.rs.getString("nome_setor"));
            textDescricao.setText(conexao.rs.getString("descricao_setor"));
            textResp.setText(conexao.rs.getString("responsavel_setor"));
            textEmail.setText(conexao.rs.getString("email_setor"));
            textAreaR.setText(conexao.rs.getString("risco_setor"));
            textAreaO.setText(conexao.rs.getString("observacoes_setor"));
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null,"Erro proximo dado/n"+ ex);
            conexao.desconecta();
        }
        conexao.desconecta();
    }//GEN-LAST:event_btnProximoActionPerformed

    private void btnUltimoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnUltimoActionPerformed
        NovoSetor();
        conexao.conexao();
        try {
            conexao.executaSQL("select * from setor");
            conexao.rs.last();
            textCodigoSetor.setText(String.valueOf(conexao.rs.getInt("idTBSetor")));
            textNomeSetor.setText(conexao.rs.getString("nome_setor"));
            textDescricao.setText(conexao.rs.getString("descricao_setor"));
            textResp.setText(conexao.rs.getString("responsavel_setor"));
            textEmail.setText(conexao.rs.getString("email_setor"));
            textAreaR.setText(conexao.rs.getString("risco_setor"));
            textAreaO.setText(conexao.rs.getString("observacoes_setor"));
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null,"Erro ultimo"+ ex);
            conexao.desconecta();
        }
        conexao.desconecta();
    }//GEN-LAST:event_btnUltimoActionPerformed

    private void btnSalvarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSalvarActionPerformed
        conexao.conexao();
        String sqlInserir = ("INSERT INTO setor (nome_setor, descricao_setor, responsavel_setor, risco_setor, observacoes_setor, email_setor) values (?,?,?,?,?,?)");
        try {
            PreparedStatement pst = conexao.con.prepareStatement(sqlInserir);
            pst.setString(1, textNomeSetor.getText());
            pst.setString(2, textDescricao.getText());
            pst.setString(3, textResp.getText());
            pst.setString(4, textAreaR.getText());
            pst.setString(5, textAreaO.getText());
            pst.setString(6, textEmail.getText());
            pst.execute();
            pst.close();
            JOptionPane.showMessageDialog(null, "Salvo com Sucesso!");
            geraTabela("select * from setor order by idTBSetor");
            conexao.desconecta();
        } catch (SQLException erro) {
            JOptionPane.showMessageDialog(null,"Erro ao Inserir"+ erro);
            conexao.desconecta();
        }
        conexao.desconecta();
        Cancelar();
    }//GEN-LAST:event_btnSalvarActionPerformed

    private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarActionPerformed
       Cancelar();
       conexao.desconecta();
    }//GEN-LAST:event_btnCancelarActionPerformed

    public void NovoSetor() {
        textNomeSetor.setEnabled(true);
        textDescricao.setEnabled(true);
        textResp.setEnabled(true);
        textEmail.setEnabled(true);
        textAreaO.setEnabled(true);
        textAreaR.setEnabled(true);
        textNomeSetor.requestFocus();
    }

    public void Cancelar() {
        textNomeSetor.setText("");
        textDescricao.setText("");
        textResp.setText("");
        textEmail.setText("");
        textAreaO.setText("");
        textAreaR.setText("");
        btnNovo.requestFocus();
        textNomeSetor.setEnabled(false);
        textDescricao.setEnabled(false);
        textResp.setEnabled(false);
        textEmail.setEnabled(false);
        textAreaO.setEnabled(false);
        textAreaR.setEnabled(false);
    }

    public void geraTabela(String SQL) {
        ArrayList dados = new ArrayList();
        String[] Colunas = new String[]{"Codigo", "Nome", "Descrição", "Responsavel", "E-mail"};
        conexao.executaSQL(SQL);
        try {
            conexao.rs.first();
            do {
                dados.add((new Object[]{conexao.rs.getInt("idTBSetor"), conexao.rs.getString("nome_setor"), conexao.rs.getString("descricao_setor"), conexao.rs.getString("responsavel_setor"), conexao.rs.getString("email_setor")}));
            } while (conexao.rs.next());
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, "Erro ao preencher o arrayList/n" + ex);
            conexao.desconecta();
        }
        ModeloTabela modeloTabela = new ModeloTabela(dados, Colunas);

        tableSetor.setModel(modeloTabela);
        tableSetor.getColumnModel().getColumn(0).setPreferredWidth(70);
        tableSetor.getColumnModel().getColumn(0).setResizable(false);
        tableSetor.getColumnModel().getColumn(1).setPreferredWidth(280);
        tableSetor.getColumnModel().getColumn(1).setResizable(false);
        tableSetor.getColumnModel().getColumn(2).setPreferredWidth(180);
        tableSetor.getColumnModel().getColumn(2).setResizable(false);
        tableSetor.getColumnModel().getColumn(3).setPreferredWidth(180);
        tableSetor.getColumnModel().getColumn(3).setResizable(false);
        tableSetor.getColumnModel().getColumn(4).setPreferredWidth(180);
        tableSetor.getColumnModel().getColumn(4).setResizable(false);

        tableSetor.getTableHeader().setReorderingAllowed(false);
        tableSetor.setAutoResizeMode(tableSetor.AUTO_RESIZE_OFF);
        tableSetor.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

    }

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Frm_CadSetor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Frm_CadSetor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Frm_CadSetor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Frm_CadSetor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Frm_CadSetor().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAlterar;
    private javax.swing.JButton btnAnterior;
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnExcluir;
    private javax.swing.JButton btnNovo;
    private javax.swing.JButton btnPrimeiro;
    private javax.swing.JButton btnProximo;
    private javax.swing.JButton btnSalvar;
    private javax.swing.JButton btnUltimo;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JLabel lbCodigo;
    private javax.swing.JLabel lbDescricao;
    private javax.swing.JLabel lbEmail;
    private javax.swing.JLabel lbNome;
    private javax.swing.JLabel lbObservacoes;
    private javax.swing.JLabel lbResp;
    private javax.swing.JLabel lbRisco;
    private javax.swing.JTable tableSetor;
    private javax.swing.JTextArea textAreaO;
    private javax.swing.JTextArea textAreaR;
    private javax.swing.JTextField textCodigoSetor;
    private javax.swing.JTextField textDescricao;
    private javax.swing.JTextField textEmail;
    private javax.swing.JTextField textNomeSetor;
    private javax.swing.JTextField textResp;
    // End of variables declaration//GEN-END:variables
}
